package io.gitee.zhangbinhub.admin.deploy.po

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank

@Schema(description = "部署任务参数")
data class DeployTaskPo(
    @field:Schema(description = "ID")
    var id: String? = null,
    @field:Schema(description = "任务名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "任务名称不能为空")
    var name: String? = null,
    @field:Schema(description = "脚本文件", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "脚本文件不能为空")
    var scriptFile: String? = null,
    @field:Schema(description = "参数文件")
    var paramFile: String? = null,
    @field:Schema(description = "执行的服务器IP正则表达式")
    var serverIpRegex: String? = null,
    @field:Schema(description = "备注")
    var remarks: String? = null
)